<%@ include file="/inc/top.jsp" %>
<%@ page import="com.novix.portal.framework.util.IConstants" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="lotus.domino.Document" %>
<%@ page import="com.novix.portal.framework.model.impl.WebOrganization" %>
<%@ page import="com.novix.portal.framework.util.UserContainer" %>
<%@ page import="com.novix.portal.framework.model.impl.WebContact" %>
<html:form action="/domino/viewOrganizations">
<%
  WebContact con = (WebContact)request.getAttribute(IConstants.CONTACT_DOC);
%>
  <br>
  <div align="center">
    <h2>
      <bean:write name="<%= IConstants.CONTACT_DOC %>" property="fullName" />
      &nbsp;&nbsp;
      <bean:write name="<%= IConstants.CONTACT_DOC %>" property="companyName" />
    </h2>
    <br>
    <LABEL>
      Business Phone
    </LABEL>
    :
    <bean:write name="<%= IConstants.CONTACT_DOC %>" property="officePhoneNumber" />
    &nbsp;&nbsp;
    <LABEL>
      Business Fax
    </LABEL>
    :
    <bean:write name="<%= IConstants.CONTACT_DOC %>" property="officeFaxNumber" />
    <br>
    <logic:notEmpty property="jobTitle" name="<%= IConstants.CONTACT_DOC %>">
      <LABEL>
        Job Title
      </LABEL>
      :
      <bean:write name="<%= IConstants.CONTACT_DOC %>" property="jobTitle" />
      <br>
    </logic:notEmpty>
    <LABEL>
      Email Address
    </LABEL>
    :
<%
    out.println("<a href = 'mailto:" + con.getInternetAddress() + "'>" + con.getInternetAddress() + "</a>");
%>
    &nbsp;&nbsp;
    <logic:notEmpty property="webSite" name="<%= IConstants.CONTACT_DOC %>">
      <LABEL>
        Company Website
      </LABEL>
      :
<%
      out.println("<a href = 'http://" + con.getWebSite() + "' target=_blank>" + con.getWebSite() + "</a>");
%>
    </logic:notEmpty>
    <logic:notMatch value ="No-Image-Found"property="imageLink" name="<%= IConstants.CONTACT_DOC %>">
    <br><img height="750px" width="500px" src="<bean:write name="<%= IConstants.CONTACT_DOC %>"  property="imageLink"/>" border=0 alt="<bean:write name="<%= IConstants.CONTACT_DOC %>"  property="fullName"/>"><br>
    </logic:notMatch>
    <logic:notEmpty property="spouseName" name="<%= IConstants.CONTACT_DOC %>">
      <LABEL>
        Spouse Name
      </LABEL>
      :
      <bean:write name="<%= IConstants.CONTACT_DOC %>" property="spouseName" />
    </logic:notEmpty>
  </div>
</html:form>
<%@ include file="/inc/footer.jsp" %>
